<template>
    <input-select-multiple  :id="id"  :isreadonly="isreadonly" :dataField="dataField" :index="index"  :data="data"  @input="changeInput" isChange="Y" :appid="appid" :exkey="exkey" :extype="extype"  :sign="sign" :time="time"  :postUrl="postUrl" :options="options"  :valsql="valsql" ></input-select-multiple>        
</template>
<script>
export default {
    props:['id','options','styles','value','data','index','isreadonly','isBorder','extype','valsql','appid','dataField','isSearch','isChange','exkey','sign','time','postUrl'],
    name: "xh-batch-select",
    components: {
        InputSelectMultiple: resolve => {require(['../../input/input-select-multiple'], resolve)},
    },
    data(){
        return{

        }
    },
    created(){

    },
    methods:{
        changeInput(item){
            item=JSON.parse(item);
            console.log(item,'itemss')
            let val=item.val;
            for(let i=0;i<this.data["szItem"].length;i++){
                try{
                    
                    this.data["szItem"][i].szf_ex9=val;
                }catch(e){}
                try{
                    this.data["szItem"][i].szi_ex22=val;
                }catch(e){}
            }
        }
    }
}
</script>